package main.hooks;

import main.Player;
import main.bots.Methods;

public class RSPlayer {
	int x;
	int yl;
	String name;
	int slotId;
	int combatLevel;
	Player player;
	
	public RSPlayer(Player player, int slotId) {
	this.player = player;	
	this.slotId = slotId;
	}
	
	public String getName() {
		return getPlayer().name;
	}
	
	public Player getPlayer() {
		return player;
	}
	public int getX() {
		return getPlayer().smallX[0] + Methods.getClientToUse().baseX;
	}
	public int getY() {
		return getPlayer().smallY[0] + Methods.getClientToUse().baseY;
	}
	public RSTile getLocation() {
		return new RSTile(getX(), getY());
	}
	public int getCombatLevel() {
		return getPlayer().combatLevel;
	}
	public int slotId() {
		return slotId;
	}

}
